HttpRequest

open class HttpRequest

Represents an HTTP request.

Constructors

HttpRequest
Link copied to clipboard
open fun HttpRequest(url: String)
HttpRequest
Link copied to clipboard
open fun HttpRequest(url: String, @Nullable() headers: Map<String, String>, @Nullable() body: Array<Byte>, httpMethod: String)

Properties

body
Link copied to clipboard
private open var body: Array<Byte>
headers
Link copied to clipboard
private open var headers: Map<String, String>
url
Link copied to clipboard
private open var url: String

Functions

getMethod
Link copied to clipboard
open fun getMethod(): String
Returns the HTTP method of the request.
setMethod
Link copied to clipboard
open fun setMethod(httpMethod: String)
Set the HTTP method of the request.

Inheritors

DrmRequest
Link copied to clipboard